package ${conf.client_package};
<#assign beanName = table.beanName/>
<#assign beanNameUncap_first = beanName?uncap_first/>
import ${conf.resp_package}.${beanName}Resp;
import ${conf.req_package}.${beanName}ListReq;
import ${conf.req_package}.${beanName}AddReq;
import ${conf.req_package}.${beanName}UpdateReq;
import com.gateon.hw.base.vo.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
*  ${table.tableDesc}实体bean
* Created by ${conf.code_author} on ${.now}
*/
public interface ${table.beanName}Client{
    @PostMapping("/${beanNameUncap_first}/list")
    Result<IPage<${table.beanName}Resp>> list(@RequestBody ${table.beanName}ListReq req);

    @PostMapping("/${beanNameUncap_first}/{id}")
    Result<${table.beanName}Resp> detail(@PathVariable("id") Long id);

    @PostMapping("/${beanNameUncap_first}/insert")
    Result insert(@RequestBody ${table.beanName}AddReq req);

    @PostMapping("/${beanNameUncap_first}/update")
    Result update(@RequestBody ${table.beanName}UpdateReq req);

    @PostMapping("/${beanNameUncap_first}/delete")
    Result delete(@PathVariable("id") Long id);

}
